package com.wlf.admin.common.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

// xss过滤相关配置
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "xss")
public class XssConfig {
    /**
     * 是否启用Xss过滤，
     * false 禁用
     * true 启用
     */
    private Boolean enabled = false;

    /**
     * 不进行Xss过滤的链接
     */
    private List<String> excludes = new ArrayList<>();
}
